﻿<UserControl x:Class="DiscoveryLogic.UI.Layouts.Controls.PieSlice"
        xmlns="http://schemas.microsoft.com/client/2007" 
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
        >

    <Canvas x:Name="PieSliceCanvas">
        
        <Canvas.Resources>
            <Storyboard x:Name="ChangeSliceOpacity">
                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="PieSlice" Storyboard.TargetProperty="Opacity">
                    <SplineDoubleKeyFrame x:Name="ChangeSliceOpacity_KeyFrame" KeyTime="00:00:00.3" Value="0.30" KeySpline="0.5,0,0.504,1"/>
                </DoubleAnimationUsingKeyFrames>                
            </Storyboard>

            <Storyboard x:Name="AnimLiftSlice">
                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="PieSlice" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(TranslateTransform.X)">
                    <SplineDoubleKeyFrame x:Name="LiftSliceKeyFrameX" KeyTime="00:00:00.3" Value="0.30" KeySpline="0.5,0,0.504,1"/>
                </DoubleAnimationUsingKeyFrames>
                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="PieSlice" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(TranslateTransform.Y)">
                    <SplineDoubleKeyFrame x:Name="LiftSliceKeyFrameY" KeyTime="00:00:00.3" Value="0.30" KeySpline="0.5,0,0.504,1"/>
                </DoubleAnimationUsingKeyFrames>
            </Storyboard>

            <Storyboard x:Name="AnimLowerSlice">
                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="PieSlice" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(TranslateTransform.X)">
                    <SplineDoubleKeyFrame  KeyTime="00:00:00.3" Value="0" KeySpline="0.5,0,0.504,1"/>
                </DoubleAnimationUsingKeyFrames>
                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="PieSlice" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(TranslateTransform.Y)">
                    <SplineDoubleKeyFrame  KeyTime="00:00:00.3" Value="0" KeySpline="0.5,0,0.504,1"/>
                </DoubleAnimationUsingKeyFrames>
            </Storyboard>

            <Storyboard x:Name="GrowSlice">
                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="PieSlice" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[1].(ScaleTransform.ScaleX)">
                    <SplineDoubleKeyFrame  KeyTime="00:00:00.9" Value="1" KeySpline="0.5,0,0.504,1"/>
                </DoubleAnimationUsingKeyFrames>
                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="PieSlice" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[1].(ScaleTransform.ScaleY)">
                    <SplineDoubleKeyFrame  KeyTime="00:00:00.9" Value="1" KeySpline="0.5,0,0.504,1"/>
                </DoubleAnimationUsingKeyFrames>
            </Storyboard>

        </Canvas.Resources>
            
        

    </Canvas>
</UserControl>
